#include<stdio.h>
struct student
{
	int num;
	char name[20];
	float score;
};
int main()
{
	struct student stu[5]={{10101,"lili",78},{10103,"gygy",98.5},{10106,"fttf",86},{10108,"bbhh",73},{10110,"huhu",100}};
	struct student temp;
	int n=5;
	int i,j,k;
	printf("the order is:\n");
	for(i=0;i<n-1;i++)
	{k=i;
	for(j=i+1;j<n;j++)
	if(stu[j].score>stu[k].score)
	k=j;
	temp=stu[k];stu[k]=stu[i];stu[i]=temp;
	}
	for(i=0;i<n;i++)
	printf("%d\n,%s\n,%f\n",stu[i].num,stu[i].name,stu[i].score);
	return 0;
}
